function getMemberList (params) {
  return $axios({
    url: '/user/page',
    method: 'get',
    params
  })
}

// 修改---启用禁用接口
function enableOrDisableEmployee (params) {
  return $axios({
    url: '/employee',
    method: 'put',
    data: { ...params }
  })
}

// 新增---添加用户
function addEmployee (params) {
  return $axios({
    url: '/employee',
    method: 'post',
    data: { ...params }
  })
}

// 修改---添加用户
function editEmployee (params) {
  return $axios({
    url: '/user/updateUser',
    method: 'put',
    data: { ...params }
  })
}

// 修改页面反查详情接口
function queryEmployeeById (id) {
  return $axios({
    url: `/user/${id}`,
    method: 'get'
  })
}

// 删除用户
function deleteMember (id) {
    return $axios({
        url: `/user/${id}`,
        method: 'delete'
    })
}

function loginLog (params) {
  return $axios({
    url: '/user/loginLog',
    method: 'get',
    params
  })
}